import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";
import mapMock from "../mock/map";
import echartsMock from "../mock/echarts";
import asyncRoutesMock from "../mock/asyncRoutes";
import sysMenuMock from "../mock/sysmenu";
import userMock from "../mock/user";

export const mockModules = [
  ...mapMock,
  ...echartsMock,
  ...asyncRoutesMock,
  ...userMock,
  ...sysMenuMock
];

export function setupProdMockServer() {
  createProdMockServer(mockModules);
}
